package com.burst.reptile.modular.monitor.service.impl;

import com.burst.reptile.modular.monitor.entity.SysLogininfor;
import com.burst.reptile.modular.monitor.mapper.SysLogininforMapper;
import com.burst.reptile.modular.monitor.service.ISysLogininforService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统访问记录 服务实现类
 * </p>
 *
 * @author wujin
 * @since 2020-05-22
 */
@Service
public class SysLogininforServiceImpl extends ServiceImpl<SysLogininforMapper, SysLogininfor> implements ISysLogininforService {

	@Override
	public void insertLogininfor(SysLogininfor logininfor) {
		this.baseMapper.insertLogininfor(logininfor);
		
	}

	@Override
	public Page<SysLogininfor> selectPageLogininforList(Page<SysLogininfor> page, SysLogininfor logininfor) {
		return this.baseMapper.selectPageLogininforList(page, logininfor);
	}

	@Override
	public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor) {
		return this.baseMapper.selectLogininforList(logininfor);
	}

	@Override
	public int deleteLogininforByIds(Long[] infoIds) {
		return this.baseMapper.deleteBatchIds(Arrays.asList(infoIds));
	}

	@Override
	public void cleanLogininfor() {
		this.baseMapper.cleanLogininfor();
	}

}
